#ifndef USERONLINEAPI_H
#define USERONLINEAPI_H
#include <QObject>
#include <QMainWindow>
#include <QtNetwork>
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <Utils.h>
#include <config.h>

class UserOnlineApi : public QObject
{
    Q_OBJECT
public:
    explicit UserOnlineApi(QObject *parent = nullptr);
    QByteArray* list(QString ipaddr,QString userName);
    QByteArray* logout(QString token);
private:
    QString baseUrl ;
    QNetworkRequest request;
    QNetworkAccessManager *manager ;
    QByteArray *data = nullptr;
    Utils utils;
};

#endif // USERONLINEAPI_H
